﻿using DA;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BL
{
    public class CongNhanBL
    {
        CongNhanDA congNhanDA;

        public CongNhanBL()
        {
            congNhanDA = new CongNhanDA();
        }

        public DataSet layDanhSachCongNhan()
        {
            return congNhanDA.layDanhSachCongNhan();
        }

        public DataSet timKiemCongNhan(int loai, String strTimKiem)
        {
            return congNhanDA.timKiemCongNhan(loai, strTimKiem);
        }

        public void updateCongNhan(DataTable dt)
        {
            congNhanDA.danhSachCongNhanAdapter.Update(dt);
        }

        public DataSet layDanhSachMaVaTenCongNhan()
        {
            return congNhanDA.layDanhSachMaVaTenCongNhan();
        }
        public DataSet chonCongNhan()
        {
            return congNhanDA.chonCongNhan();
        }
    }
}
